home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / tweak16b.zip / MISC / VGABIOS.TXT < prev   
Text File  |  1993-01-22  |  29KB  |  708 lines

  1. ----------1000-------------------------------
  2. INT 10 - VIDEO - SET VIDEO MODE
  3.     AH = 00h
  4.     AL = mode (see below)
  5. Return: AL = video mode flag (Phoenix BIOS)
  6.          20h mode > 7
  7.          30h modes <= 7 except mode 6
  8.          3Fh mode 6
  9.     AL = CRT controller mode byte (Phoenix 386 BIOS v1.10)
  10. Notes:       IBM standard modes do not clear the screen if the high bit of AL is set
  11.       (EGA or higher only)
  12. SeeAlso: AX=0070h,AX=007Eh,AX=10F0h,AX=6F05h,AH=FFh"GO32",INT 5F/AH=00h
  13.  
  14. Values for video mode:
  15.      text/ text   pixel pixel    colors  display  scrn system
  16.      grph  resol  box   resoltn          pages   addr
  17.  00h = T   40x25  8x14           16gray     8    B800 EGA
  18.      = T   40x25  8x16             16       8    B800 MCGA
  19.      = T   40x25  9x16             16       8    B800 VGA
  20.  01h = T   40x25  8x14             16       8    B800 EGA
  21.      = T   40x25  8x16             16       8    B800 MCGA
  22.      = T   40x25  9x16             16       8    B800 VGA
  23.  02h = T   80x25  8x14           16gray     4    B800 EGA
  24.      = T   80x25  8x16             16       4    B800 MCGA
  25.      = T   80x25  9x16             16       4    B800 VGA
  26.  03h = T   80x25  8x14             16       4    B800 EGA
  27.      = T   80x25  8x16             16       4    B800 MCGA
  28.      = T   80x25  9x16             16       4    B800 VGA
  29.  04h = G   40x25  8x8     320x200           4    B800 CGA,PCjr,EGA,MCGA,VGA
  30.  05h = G   40x25  8x8     320x200 4gray          B800 CGA,PCjr,EGA
  31.      = G   40x25  8x8     320x200   4            B800 MCGA,VGA
  32.  06h = G   80x25  8x8     640x200   2            B800 CGA,PCjr,EGA,MCGA,VGA
  33.  07h = T   80x25  9x14            mono     var   B000 MDA,Hercules,EGA
  34.      = T   80x25  9x16            mono           B000 VGA
  35.  0Bh =                 reserved (used internally by EGA BIOS)
  36.  0Ch =                 reserved (used internally by EGA BIOS)
  37.  0Dh = G   40x25  8x8     320x200  16       8    A000 EGA,VGA
  38.  0Eh = G   80x25  8x8     640x200  16       4    A000 EGA,VGA
  39.  0Fh = G   80x25  8x14    640x350 mono      2    A000 EGA,VGA
  40.  10h = G   80x25  8x14    640x350   4       2    A000 64k EGA
  41.      = G                  640x350  16            A000 256k EGA,VGA
  42.  11h = G   80x30  8x16    640x480 mono           A000 VGA,MCGA,ATI EGA,ATI VIP
  43.  12h = G   80x30  8x16    640x480 16/256k        A000 VGA,ATI VIP
  44.      = G   80x30  8x16    640x480 16/64          A000 ATI EGA Wonder
  45.  13h = G   40x25  8x8     320x200 256/256k       A000 VGA,MCGA,ATI VIP
  46. ----------1001-------------------------------
  47. INT 10 - VIDEO - SET TEXT-MODE CURSOR SHAPE
  48.     AH = 01h
  49.     CH = bit 7    should be zero
  50.          bits 6,5 cursor blink
  51.         (00=normal, 01=invisible, 10=erratic, 11=slow)
  52.         (00=normal, other=invisible on EGA/VGA)
  53.          bits 4-0 top scan line containing cursor
  54.     CL = bottom scan line containing cursor (bits 0-4)
  55. Notes: buggy on EGA systems--BIOS remaps cursor shape in 43 line modes, but
  56.        returns unmapped cursor shape
  57.        applications which wish to change the cursor by programming the
  58.        hardware directly on EGA or above should call INT 10/AX=1130h or
  59.        read 0040h:0085h first to determine the current font height
  60. BUG:   AMI 386 BIOS and AST Premier 386 BIOS will lock up the system if AL
  61.        is not equal to the current video mode
  62. SeeAlso: AH=03h,AX=CD05h
  63. ----------1002-------------------------------
  64. INT 10 - VIDEO - SET CURSOR POSITION
  65.     AH = 02h
  66.     BH = page number
  67.           0-3 in modes 2&3
  68.           0-7 in modes 0&1
  69.         0 in graphics modes
  70.     DH = row (00h is top)
  71.     DL = column (00h is left)
  72. SeeAlso: AH=03h,AH=05h
  73. ----------1003-------------------------------
  74. INT 10 - VIDEO - GET CURSOR POSITION AND SIZE
  75.     AH = 03h
  76.     BH = page number
  77.           0-3 in modes 2&3
  78.           0-7 in modes 0&1
  79.         0 in graphics modes
  80. Return: AX = 0000h (Phoenix BIOS)
  81.     CH = start scan line
  82.     CL = end scan line
  83.     DH = row (00h is top)
  84.     DL = column (00h is left)
  85. Notes: a separate cursor is maintained for each of up to 8 display pages
  86.        many ROM BIOSes incorrectly return the default size for a color display
  87.        (start 06h, end 07h) when a monochrome display is attached
  88. SeeAlso: AH=01h,AH=02h
  89. ----------1004-------------------------------
  90. INT 10 - VIDEO - READ LIGHT PEN POSITION (EGA Only)
  91.     AH = 04h
  92. Return: AH = light pen trigger flag
  93.          00h not down/triggered
  94.          01h down/triggered 
  95.     DH,DL = row,column of character light pen is on 
  96.     CH = pixel row (graphics modes 04h-06h)
  97.     CX = pixel row (graphics modes with >200 rows)
  98.     BX = pixel column
  99. Notes: on a CGA, returned column numbers are always multiples of 2 (320-
  100.        column modes) or 4 (640-column modes)
  101.        returned row numbers are only accurate to two lines
  102. ----------1005-------------------------------
  103. INT 10 - VIDEO -  SELECT ACTIVE DISPLAY PAGE
  104.     AH = 05h
  105.     AL = new page number (00h to number of pages - 1) (see AH=00h)
  106. SeeAlso: AH=0Fh
  107. ----------1006-------------------------------
  108. INT 10 - VIDEO - SCROLL UP WINDOW
  109.     AH = 06h
  110.     AL = number of lines by which to scroll up (00h = clear entire window)
  111.     BH = attribute used to write blank lines at bottom of window
  112.      CH,CL = row,column of window's upper left corner
  113.      DH,DL = row,column of window's lower right corner
  114. Note:  affects only the currently active page (see AH=05h)
  115. Warning: some implementations have a bug which destroys BP
  116. SeeAlso: AH=07h,AH=72h,AH=73h
  117. ----------1007-------------------------------
  118. INT 10 - VIDEO - SCROLL DOWN WINDOW
  119.     AH = 07h
  120.     AL = number of lines by which to scroll down (00h=clear entire window)
  121.     BH = attribute used to write blank lines at top of window
  122.      CH,CL = row,column of window's upper left corner
  123.      DH,DL = row,column of window's lower right corner
  124. Note:  affects only the currently active page (see AH=05h)
  125. Warning: some implementations have a bug which destroys BP
  126. SeeAlso: AH=06h,AH=72h,AH=73h
  127. ----------1008-------------------------------
  128. INT 10 - VIDEO - READ CHARACTER AND ATTRIBUTE AT CURSOR POSITION
  129.     AH = 08h
  130.     BH = page number (00h to number of pages - 1) (see AH=00h)
  131. Return: AH = attribute
  132.          bit    7: blink
  133.          bits 6-4: background color
  134.                000 black
  135.                001 blue
  136.                010 green
  137.                011 cyan
  138.                100 red
  139.                101 magenta
  140.                110 brown
  141.                111 white
  142.          bits 3-0: foreground color
  143.                0000 black       1000 dark gray
  144.                0001 blue        1001 light blue
  145.                0010 green       1010 light green
  146.                0011 cyan        1011 light cyan
  147.                0100 red         1100 light red
  148.                0101 magenta     1101 light magenta
  149.                0110 brown       1110 yellow
  150.                0111 light gray  1111 white
  151.     AL = character
  152. Notes: for monochrome displays, a foreground of 1 with background 0 is underlined
  153.        the blink bit may be reprogrammed to enable intense background colors
  154.        using AX=1003h or by programming the CRT controller
  155. SeeAlso: AH=09h,AX=1003h
  156. ----------1009-------------------------------
  157. INT 10 - VIDEO - WRITE CHARACTER AND ATTRIBUTE AT CURSOR POSITION
  158.     AH = 09h
  159.     AL = character to display
  160.     BH = page number (00h to number of pages - 1) (see AH=00h)
  161.     BL = attribute (text mode) or color (graphics mode)
  162.          if bit 7 set in graphics mode, character is xor'ed onto screen
  163.     CX = number of times to write character
  164. Notes: all characters are displayed, including CR, LF, and BS
  165.        replication count in CX may produce an unpredictable result in graphics
  166.        modes if it is greater than the number of positions remaining in the
  167.        current row
  168. SeeAlso: AH=08h,AH=0Ah,AH=4Bh,INT 17/AH=60h,INT 1F,INT 43,INT 44
  169. ----------100A-------------------------------
  170. INT 10 - VIDEO - WRITE CHARACTER ONLY AT CURSOR POSITION
  171.     AH = 0Ah
  172.     AL = character to display
  173.     BH = page number (00h to number of pages - 1) (see AH=00h)
  174.     BL = attribute (PCjr only) or color (graphics mode)
  175.          if bit 7 set in graphics mode, character is xor'ed onto screen
  176.     CX = number of times to write character
  177. Notes: all characters are displayed, including CR, LF, and BS
  178.        replication count in CX may produce an unpredictable result in graphics
  179.        modes if it is greater than the number of positions rem